import request from './request.js'
import config from './config.js'


/**
 * 请求数据处理
 * @param string url 请求地址
 * @param string method 请求方式
 *  GET or POST
 * @param {*} postData 请求参数
 * 
 * @param bool isDelay 是否延迟显示loading  false
 * @param bool isForm 数据格式 
 *  true: 'application/x-www-form-urlencoded'
 *  false:'application/json'
 * @param bool hideLoading 是否隐藏loading 获取数据之前的等待 false
 *  true: 隐藏
 *  false:显示
 */

const http = {
	//登录 dinglu 
	dinglu: {},

	//公共核心  
	core: {
		// 获取字典数据下拉框列表
		zidian: function(id) {
			const opts = {
				url: '/api/hrc/dic/' + id + '/Data/Selector',
				method: 'get',
			}
			return request.request(opts, false, false);
		},
		// 获取企业基本资料
		tenantgetbasic: function(id) {
			const opts = {
				url: '/api/core/tenant/getbasic/' + id,
				method: 'get',
			}
			return request.request(opts, false, false);
		},

		// 添加企业地址
		tenantCr_address: function(data, hideLoading = false) {
			const opts = {
				url: '/api/core/tenant/cr_address',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 获取企业地址
		tenantAddress: function(data, hideLoading = false) {
			const opts = {
				url: '/api/core/tenant/address',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},

		//删除企业地址
		tenantDel_address: function(id) {
			const opts = {
				url: '/api/core/tenant/del_address?id=' + id,
				method: 'delete',
				id
			}
			return request.request(opts, false, false, false);
		},

		//  修改公司官网基本信息（全部）
		tenantupdate: function(data, hideLoading = false) {
			const opts = {
				url: '/api/core/tenant/update',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 获取企业基本信息所有数据
		tenantgetall: function(ids) {
			const opts = {
				url: '/api/core/tenant/getall/' + ids,
				method: 'get'
			}
			return request.request(opts, false, false);
		},

		// 企业所有
		dicAll: function() {
			const opts = {
				url: '/api/core/dic/All',
				method: 'get'
			}
			return request.request(opts, false, false);
		},

		// 查询认证信息
		accountgetAudit: function() {
			const opts = {
				url: '/api/core/account/getAudit',
				method: 'get'
			}
			return request.request(opts, false, false, false, true);
		},

		// 获取当前登录用户信息
		accountcurrentUser: function(data) {
			const opts = {
				url: '/api/hrc/account/currentUser',
				method: 'get',
				data: data
			}
			return request.request(opts, false, false, false);
		},

		// 当前用户登录信息 
		myinfo: function(data) {
			const opts = {
				url: '/api/core/account/myinfo',
				method: 'get',
				data: data
			}
			return request.request(opts, false, false, false);
		},
		// 添加认证数据
		person_add: function(data, hideLoading = false) {
			const opts = {
				url: '/api/core/audit/person/add',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},
		//个人认证 修改
		personupdate: function(data, ids) {
			const opts = {
				url: '/api/core/audit/person/update/' + ids,
				method: 'post',
				data: data
			}
			return request.request(opts, false, false);
		},
		// 修改手机号
		editPhoneNumber: function(data, hideLoading = false) {
			const opts = {
				url: '/api/core/account/editPhoneNumber',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},

		//验证码 发送短信验证码
		sendSmsCode: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/account/sendSmsCode',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 修改邮箱
		editEmail: function(data, hideLoading = false) {
			const opts = {
				url: '/api/core/account/editEmail',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},

		//修改密码
		updatepassword: function(data, hideLoading = false) {
			const opts = {
				url: '/api/core/account/updatepassword',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},
		//获取邀请加入信息
		invite_url: function(data, hideLoading = false) {
			const opts = {
				url: '/api/core/corp/invite/url',
				method: 'get',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},
		//查询邀请加入信息
		get_joinCorp: function(data, hideLoading = false) {
			const opts = {
				url: '/api/core/account/joinCorp',
				method: 'get',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},
		//加入企业
		joinCorp: function(data, hideLoading = false) {
			const opts = {
				url: '/api/core/account/joinCorp',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},

		//注册
		register: function(data, hideLoading = false) {
			const opts = {
				url: '/api/core/account/register',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},

		//忘记密码
		forgotpassword: function(data, hideLoading = false) {
			const opts = {
				url: '/api/core/account/forgotpassword',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},

		//修改头像
		upadteBuddha: function(data, hideLoading = false) {
			const opts = {
				url: '/api/core/account/upadteBuddha',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 添加认证数据
		personadd: function(data, hideLoading = false) {
			const opts = {
				url: '/api/core/audit/person/add',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 常用语列表 个人
		phraseslist: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/phrases/list',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 常用语列表 个人 添加
		phrasesadd: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/phrases/add',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 常用语列表 个人 编辑
		phrasesupdate: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/phrases/update',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 常用语列表 个人 删除
		phrasesdel: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/phrases/del',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 获取默认常用语 个人
		phrasesdefault: function() {
			const opts = {
				url: '/api/hrc/phrases/default',
				method: 'get'
			}
			return request.request(opts, false, false, false);
		},

		// 个人 修改成默认
		phrasesset_default: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/phrases/set_default',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},



		// 常用语列表 企业 
		phrases_corplist: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/phrases_corp/list',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 常用语列表 企业 添加
		phrases_corpadd: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/phrases_corp/add',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},



		// 获取默认常用语 公司
		phrases_corpfault: function() {
			const opts = {
				url: '/api/hrc/phrases_corp/default',
				method: 'get'
			}
			return request.request(opts, false, false, false);
		},
		// 企业 修改成默认
		phrasescorpsetdefaultfunction(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/phrases_corp/set_default',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 常用语列表 企业 编辑
		phrases_corpupdate: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/phrases_corp/update',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 常用语列表 企业 删除
		phrases_corpdel: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/phrases_corp/del',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},





		//切换角色
		changCurrentRole: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/account/changCurrentRole',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},


		// 企业 认证查询 /api/core/tenant/getAudit/
		tenantgetAudit: function(data) {
			const opts = {
				url: '/api/core/tenant/getAudit/' + data,
				method: 'get'
			}
			return request.request(opts, false, false);
		},

		// 企业 添加 
		corpadd: function(data) {
			const opts = {
				url: '/api/core/audit/corp/add',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false);
		},

		// 企业 修改 验证
		corpupdate: function(data, ids) {
			const opts = {
				url: '/api/core/audit/corp/update/' + ids,
				method: 'post',
				data: data
			}
			return request.request(opts, false, false);
		},
		//扫码
		scancodescan: function(data, hideLoading = false) {
			const opts = {
				url: '/api/core/scancode/scan',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		//扫码 确认登录
		scancodelogin: function(data, hideLoading = false) {
			const opts = {
				url: '/api/core/scancode/login',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		//扫码 取消登录
		scancodecancel: function(data, hideLoading = false) {
			const opts = {
				url: '/api/core/scancode/cancel',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},

		//套餐购买 下订单
		planorderplan: function(data, hideLoading = false) {
			const opts = {
				url: '/api/core/planorder/plan/create',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},

		//获取平台可用的支付方式
		paymentMethod: function(data, hideLoading = false) {
			const opts = {
				url: '/api/core/planorder/paymentMethod',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},

		//逆地理编码
		aMapRegeo: function(data, hideLoading = false) {
			const opts = {
				url: '/api/core/amap/regeo',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 发送邮箱验证码
		sendEmailCode: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/account/sendEmailCode',
				method: 'post',
				data: data
			}
			return request.request(opts, false, false, hideLoading);
		},



	},
	// 慧人才
	huirc: {
		// 简历-教育经历-保存
		save_educationexp: function(data) {
			const opts = {
				url: '/api/hrc/resume/educationexp/save',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		// 简历-求职意向-保存
		save_jobexpect: function(data) {
			const opts = {
				url: '/api/hrc/resume/jobexpect/save',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		// 简历-基础信息-保存
		save_resume: function(data) {
			const opts = {
				url: '/api/hrc/resume/save',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		// 获取职位类别第三级分类
		category_third: function(data) {
			const opts = {
				url: '/api/hrc/job/category/third',
				method: 'get',
				data
			}
			return request.request(opts, false, false, false);
		},

		//tim
		tim_genUserSig: function(data) {
			const opts = {
				url: '/api/hrc/tim/genUserSig',
				method: 'get',
				data
			}
			return request.request(opts, false, false, false);
		},

		//简历
		resumemy: function(data) {
			const opts = {
				url: '/api/hrc/resume/my',
				method: 'get',
				data
			}
			return request.request(opts, false, false, false, true);
		},
		// 简历-基础信息-新建
		hrcresumecr: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/cr',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 不合适
		inappropriate: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/inappropriate',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 简历-基础信息-修改
		hrcresumeup: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/up',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},


		//简历-培训经历-新建
		trainexpcr: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/trainexp/cr',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 简历-培训经历-编辑 
		trainexpup: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/trainexp/up',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 简历-培训经历-删除 
		trainexpdel: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/trainexp/del',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 添加 证书
		resumecertificatecr: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/certificate/cr',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 修改 证书
		resumecertificateup: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/certificate/up',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 修改 证书 删除
		resumecertificatedel: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/certificate/del',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},

		//简历-专业技能-新建 
		resumeproskillcr: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/proskill/cr',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},

		//简历-专业技能-修改
		resumeproskillup: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/proskill/up',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},

		//简历-专业技能-删除
		resumeproskilldel: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/proskill/del',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},


		//求职意向 添加
		resumejobexpectcr: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/jobexpect/cr',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		//求职志向 编辑
		resumejobexpectup: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/jobexpect/up',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		//简历-求职意向-删除
		resumejobexpectdel: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/jobexpect/del',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 简历-语言能力-新建
		resumelangskillcr: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/langskill/cr',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		//简历-语言能力-编辑
		resumelangskillup: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/langskill/up',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		//简历-语言能力-删除
		resumelangskilldel: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/langskill/del',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},


		// 简历-项目经历-新建
		resumeprojectexpcr: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/projectexp/cr',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		//简历-项目经历-编辑
		resumeprojectexpup: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/projectexp/up',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},

		//简历-项目经历-删除
		resumeprojectexpdel: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/projectexp/del',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 教育经历 新建
		resumeeducationexpcr: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/educationexp/cr',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 简历-教育经历-编辑
		resumeeducationexpup: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/educationexp/up',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 简历-教育经历-删除
		resumeeducationexpdel: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/educationexp/del',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		//简历-工作经历-新建
		resumeworkexpcr: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/workexp/cr',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},

		//简历-工作经历-编辑
		resumeworkexpup: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/workexp/up',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},


		//简历-工作经历-删除
		resumeworkexpdel: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/workexp/del',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},


		// 期望行业
		jobcategorytree: function() {
			const opts = {
				url: '/api/hrc/job/category/tree',
				method: 'get',
			}
			return request.request(opts, false, false, false);
		},

		// 简历-自我介绍 特长 优势 -编辑
		resumjobup: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/job/up',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 求职者-首页
		jobsearch: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/job/search',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 求职反馈列表
		inboxfeedback: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/inbox/feedback',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 简历投递
		inboxadd: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/inbox/add',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 面试列表（求职者)
		interviewlistByUser: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/interview/listByUser',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},

		//面试状态操作 取消/拒绝/同意(待面试)/签到(已面试)
		interviewupState: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/interview/upState',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 求职意向栏
		resumejobexpect: function() {
			const opts = {
				url: '/api/hrc/resume/jobexpect',
				method: 'get',
			}
			return request.request(opts, false, false, false);
		},
		// 求职者 热门职位
		searchhotjob: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/job/search/hotjob',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 招聘者 人才库搜索
		talentPoolSearch: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/search',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 招聘者 人才库职位
		talentPoolPosition: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/job/list',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 招聘者 人才库 查询详情
		talentPoolResume: function(data) {
			const opts = {
				url: '/api/hrc/resume?Id=' + data,
				method: 'get',
			}
			return request.request(opts, false, false, false);
		},
		//简历查看添加
		collectionLook: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/collection/look',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 简历收藏-添加
		collectionAdd: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/collection/add',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 删除简历收藏
		collectionDel: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/collection/del',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 根据求职意向id查询详情
		talentPoolResume: function(data) {
			const opts = {
				url: '/api/hrc/resume?Id=' + data,
				method: 'get',
			}
			return request.request(opts, false, false, false);
		},
		// 根据简历id查询详情
		talentPoolResumeid: function(data) {
			const opts = {
				url: '/api/hrc/resume/resumeid?Id=' + data,
				method: 'get',
			}
			return request.request(opts, false, false, false);
		},

		// 求职者 搜索结果 企业
		corpsearch: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/corp/search',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 求职者 列表 详情
		jobdetails: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/job/details',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 求职者 列表 详情 公司详情
		corpdetails: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/corp/details',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		//职位列表
		joblist: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/job/list',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},

		// //职位添加
		jobcr: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/job/cr',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 职位类别标签列表
		jobLabelList: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/job_label/listById',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		//职位详情
		jobDetails: function(data) {
			const opts = {
				url: '/api/hrc/job/' + data,
				method: 'get',
			}
			return request.request(opts, false, false, false);
		},
		// 职位修改
		jobModify: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/job/up',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 职位删除

		jobdel: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/job/del',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		//职位-更新显示状态
		jobactionsdisplay: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/job/actions/display',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		//求职者 在招职位  查询企业发布的所有职位分类
		searchhotcategory: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/job/search/hotcategory',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 感兴趣 收藏列表
		collectlist: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/job/collect/list',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 面试列表 招聘
		interviewlistzp: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/interview/list',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		//录用列表
		interviewlistEmploy: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/interview/listEmploy',
				method: 'post',
				data
			}
			return request.request(opts, false, false, hideLoading);
		},
		//收件箱列表
		inboxlist: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/inbox/list',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		//获取当前企业职位
		inboxjob: function(data) {
			const opts = {
				url: '/api/hrc/inbox/job',
				method: 'get',
			}
			return request.request(opts, false, false, false);
		},
		//获取收藏类型
		inboxcollection: function(data) {
			const opts = {
				url: '/api/hrc/inbox/collection',
				method: 'get',
			}
			return request.request(opts, false, false, false);
		},
		//更改收件箱反馈状态
		inboxinboxState: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/inbox/inboxState',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		//简历收藏-列表
		collectionlist: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/collection/list',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		//获取对职位感兴趣的用户简历
		collectionlistByJob: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/collection/listByJob',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		//求职者  求职意向栏  删除
		jobexpectdel: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/jobexpect/del',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		//求职者  附件简历  新建
		attachcr: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/attach/cr',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		//求职者 附件简历 删除
		attachdel: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/attach/del',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		//录用状态操作 未入职/已入职
		interviewupEmploy: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/interview/upEmploy',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		//求职者 首页 感兴趣
		collectadd: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/job/collect/add',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		//求职者 首页 取消感兴趣
		collectdel: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/job/collect/del',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		//删除录用
		employdel: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/employ/del',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		//简历收藏-添加
		collectionadd: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/collection/add',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		//简历收藏-更改类型
		collectionupdateType: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/collection/updateType',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		//更改收藏类型
		inboxuptype: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/inbox/uptype',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		//录用-列表-招聘者
		employlist: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/employ/list',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		//录用-状态操作 未入职/已入职
		employupState: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/employ/upState',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		//求职记录-列表-招聘者
		jobUserRecordlist: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/jobUserRecord/list',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},

		//求职记录-列表-求职者
		jobUserRecordlistByUser: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/jobUserRecord/listByUser',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},




		// 求职记录-更新-是否沟通聊天/交换简历/交换电话/交换微信
		jobUserRecordup: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/jobUserRecord/up',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},


		// 求职记录-单条查询（最近一条）
		jobUserRecordget: function(data) {
			const opts = {
				url: '/api/hrc/jobUserRecord/get',
				method: 'get',
				data
			}
			return request.request(opts, false, false, false);
		},

		//面试邀请-添加
		interviewadd: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/interview/add',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 录用-添加
		employadd: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/employ/add',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},

		// 移动端-我的 求职者统计数据
		myjobSeekers: function() {
			const opts = {
				url: '/api/hrc/stat/my/jobSeekers',
				method: 'get'
			}
			return request.request(opts, false, false, false);
		},

		// 移动端-我的 招聘者统计数据
		mycorpStatistics: function() {
			const opts = {
				url: '/api/hrc/stat/my/corpStatistics',
				method: 'get'
			}
			return request.request(opts, false, false, false);
		},

		//求职者常用语列表 不分页
		hrcphrases: function() {
			const opts = {
				url: '/api/hrc/phrases',
				method: 'get'
			}
			return request.request(opts, false, false, false);
		},

		//企业常用语列表-不分页
		hrcphrasescorp: function() {
			const opts = {
				url: '/api/hrc/phrases_corp',
				method: 'get'
			}
			return request.request(opts, false, false, false);
		},



		//置顶
		actionsstick: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/job/actions/stick',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		//根据code获取配置项  隐私与政策
		configcode: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/config/code',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},

		//面试邀请  删除
		interviewdel: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/interview/del',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 添加个人用户反馈问题
		feedbackUserAdd: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/feedback/user/add',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 获取个人用户的反馈问题
		feedbackUserList: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/feedback/user/list',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 添加企业用户的反馈问题
		feedbackCorpAdd: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/feedback/corp/add',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 获取企业用户的反馈问题
		feedbackCorpList: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/feedback/corp/list',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 求职端  更新简历刷新时间
		actionsRefreshTime: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/plan/user/checkPlanFeature',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 求职端  更新简历置顶状态
		actionsStick: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/resume/actions/stick',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 求职端  注销账号
		accountCancellation: function(data, hideLoading = false) {
			const opts = {
				url: '/api/hrc/account/accountCancellation',
				method: 'post',
				data,
			}
			return request.request(opts, false, false, hideLoading);
		},
		// 获取个人、企业可用套餐列表
		getPlanList: function(data) {
			const opts = {
				url: '/api/hrc/plan/getPlanList',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		// 获取个人，企业 套餐购买订单列表
		planlist: function(data) {
			const opts = {
				url: '/api/core/planorder/plan/list',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		// 简历  新建-作品集
		portfoliocr: function(data) {
			const opts = {
				url: '/api/hrc/resume/portfolio/cr',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},

		// 简历  编辑-作品集
		portfolioup: function(data) {
			const opts = {
				url: '/api/hrc/resume/portfolio/up',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		// 简历  删除-作品集
		portfoliodel: function(data) {
			const opts = {
				url: '/api/hrc/resume/portfolio/del',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		// 面试邀请-详细信息
		interviewdetailsById: function(data) {
			const opts = {
				url: '/api/hrc/interview/detailsById?id=' + data,
				method: 'get'
			}
			return request.request(opts, false, false, false);
		},
		// 资讯列表 --热播榜
		mustseeList: function(data) {
			const opts = {
				url: '/api/hrc/must_see/list',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//获取屏蔽企业列表
		corpBlockList: function(data) {
			const opts = {
				url: '/api/hrc/corp_block/list',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//屏蔽所选企业 
		corpBlock: function(data) {
			const opts = {
				url: '/api/hrc/corp_block',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		// 取消屏蔽企业
		corpBlockDel: function(id) {
			const opts = {
				url: '/api/hrc/corp_block?id=' + id,
				method: 'delete',
				id
			}
			return request.request(opts, false, false, false);
		},
		// 根据名称搜索企业
		corpBlockSearch: function(data) {
			const opts = {
				url: '/api/hrc/corp_block?corpName=' + data,
				method: 'get'
			}
			return request.request(opts, false, false, false);
		},
		//增值服务-列表 
		servitemsList: function(data) {
			const opts = {
				url: '/api/core/plan/servitems/list',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//增值服务-详情
		servitemsPackage: function(data) {
			const opts = {
				url: '/api/core/plan/servitems/package',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//我的加量包
		servitemsMybag: function(data) {
			const opts = {
				url: '/api/hrc/plan/servitems/mybag',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},

	},
	dic: {
		DataSelector: function(ids) {
			const opts = {
				url: '/api/hrc/dic/' + ids + '/Data/Selector',
				method: 'get'
			}
			return request.request(opts, false, false, false);
		},
		coreSelector: function(ids) {
			const opts = {
				url: '/api/core/dic/' + ids + '/Data/Selector',
				method: 'get'
			}
			return request.request(opts, false, false, false);
		},
	},
	live: {
		livelist: function(data) {
			const opts = {
				url: '/api/hrc/live/list',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//直播预告列表
		LiveReservationList: function(data) {
			const opts = {
				url: '/api/hrc/live/list',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//广告列表
		coreadlist: function(data) {
			const opts = {
				url: '/api/core/ad/list',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//直播详细信息
		liveDetail: function(data) {
			const opts = {
				url: '/api/hrc/live/detail',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//直播-在招职位
		liveJobs: function(data) {
			const opts = {
				url: '/api/hrc/live/jobs',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//直播预约
		liveReservation: function(data) {
			const opts = {
				url: '/api/hrc/live/reservation',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
	},
	plan: {
		//获取企业的套餐项是否可用
		checkPlanFeature: function(data) {
			const opts = {
				url: '/api/hrc/plan/corp/checkPlanFeature',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
	},
	//专场招聘
	fairs: {
		//招聘会-列表
		jobfairsList: function(data) {
			const opts = {
				url: '/api/hrc/jobfairs/list',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//招聘会-详情
		details: function(data) {
			const opts = {
				url: '/api/hrc/jobfairs/details',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//查询某个招聘会所有参会企业
		corpList: function(data) {
			const opts = {
				url: '/api/hrc/jobfairs/corpList',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
	},
	// 专家人才智库
	Expert: {
		// 广告列表 专家人才智库顶部图
		AdvertisingQuery: function(ids) {
			const opts = {
				url: '/api/core/ad/' + ids,
				method: 'get'
			}
			return request.request(opts, false, false, false);
		},
		// 获取专家列表
		expertLibraryList: function(data) {
			const opts = {
				url: '/api/hrc/expert_library/list',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
	},

	// 数字化
	digitalize: {
		// 获取课程评论列表
		educationComment: function(data) {
			const opts = {
				url: '/api/edu/education/comment',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//线上课程目录
		online_directory(data) {
			const opts = {
				url: '/api/edu/education/online_directory',
				method: 'get',
				data
			}
			return request.request(opts, false, false, false);
		},
		// 线上精品课程
		onlineEssence: function(data) {
			const opts = {
				url: '/api/edu/education/online_essence',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		// 线下精品课程
		inPersonEssence: function(data) {
			const opts = {
				url: '/api/edu/education/in_person_essence',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//本周课程排行
		courseHot: function(data) {
			const opts = {
				url: '/api/edu/education/course_hot',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//精品课程文档
		documentEssence: function(data) {
			const opts = {
				url: '/api/edu/education/document_essence',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		// 推荐课程
		recommend: function(data) {
			const opts = {
				url: '/api/edu/education/index/recommend',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		// 首页课程列表
		indexList: function(data) {
			const opts = {
				url: '/api/edu/education/index/list',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//线上课程详情
		online_detail(data) {
			const opts = {
				url: '/api/edu/education/online_detail',
				method: 'get',
				data
			}
			return request.request(opts, false, false, false);
		},
		//线下课程详情
		in_person_detail(data) {
			const opts = {
				url: '/api/edu/education/in_person_detail',
				method: 'get',
				data
			}
			return request.request(opts, false, false, false);
		},
		//文档课程详情
		document_detail(data) {
			const opts = {
				url: '/api/edu/education/document_detail',
				method: 'get',
				data
			}
			return request.request(opts, false, false, false);
		},
		// 热门搜索词
		hot_search(data) {
			const opts = {
				url: '/api/edu/education/hot_search',
				method: 'get',
				data
			}
			return request.request(opts, false, false, false);
		},
		//课程收藏
		collection: function(data) {
			const opts = {
				url: '/api/edu/education/collection',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//取消课程收藏
		uncollection: function(id) {
			const opts = {
				url: '/api/edu/education/uncollection?courseId='+id,
				method: 'delete',
				id
			}
			return request.request(opts, false, false, false);
		},
		// 购买课程  下订单
		courseCreate: function(data) {
			const opts = {
				url: '/api/edu/eduorder/course/create',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//课时购买 更换支付方式
		courseChange: function(data) {
			const opts = {
				url: '/api/edu/eduorder/course/change',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//课时购买 查询支付结果
		courseResult: function(data) {
			const opts = {
				url: '/api/edu/eduorder/course/result',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//课程  获取可用的支付方式
		coursePaymentMethod: function(data) {
			const opts = {
				url: '/api/edu/eduorder/course/paymentMethod',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//评论课程
		cr_comment: function(data) {
			const opts = {
				url: '/api/edu/education/cr_comment',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//收藏课程列表
		collectionList: function(data) {
			const opts = {
				url: '/api/edu/education/collection/list',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//我的报名课程
		my_enroll: function(data) {
			const opts = {
				url: '/api/edu/education/my_enroll',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		//我的购买课程
		my_buy: function(data) {
			const opts = {
				url: '/api/edu/education/my_buy',
				method: 'post',
				data
			}
			return request.request(opts, false, false, false);
		},
		
		
	}

	// // 例如 
	// lieru: {
	// 	Sist66: function(data) {
	// 		const opts = {
	// 			url: '/eam/sprs/list',
	// 			method: 'post',
	// 			data
	// 		}
	// 		return request.request(opts, false, false, false);
	// 	},
	// 	lect77: function(data) {
	// 		const opts = {
	// 			url: '/eam/ctodd/up',
	// 			method: 'get',
	// 			data: data
	// 		}
	// 		return request.request(opts, false, false, false);
	// 	}
	// }
}

export default http